Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update meeting name after fetch meetinginfo #342

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

rsarika
Copy link
Contributor

@rsarika rsarika commented Oct 5, 2024

Issue: Meeting name not showing in meeting widget instead it shows sip address.
Fix: added update title code in fetchMeetingInfo.topic

https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-566707

Screenshot 2024-10-09 at 7 26 00 PM
Screenshot 2024-10-09 at 7 26 13 PM
![Screenshot 2024-10-09 at 7 27 58 PM](https://github.com/u
Screenshot 2024-10-10 at 4 02 11 PM
Screenshot 2024-10-10 at 4 03 09 PM
Screenshot 2024-10-10 at 4 03 37 PM
ser-attachments/assets/8e1c0bb1-686a-41a0-9bb6-da2a5398a4c7)

Copy link
Contributor

@Kesari3008 Kesari3008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add screen-recording or screenshot for manual testing done in the PR description

@@ -595,9 +595,11 @@ export default class MeetingsSDKAdapter extends MeetingsAdapter {
)),
tap((meeting) => {
const sdkMeeting = this.fetchMeeting(meeting.ID);
const updatedTitle = sdkMeeting.meetingInfo.topic || meeting.title;
const updatedMeeting = {...meeting, title: updatedTitle};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we try updating the meeting object itself here with updated title instead of creating new object?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed

@@ -450,6 +450,40 @@ describe('Meetings SDK Adapter', () => {
});
});

it('should emit EVENT_MEETING_UPDATED with the updated title from sdkMeeting.meetingInfo.topic', (done) => {
// Mock implementations
meetingsSDKAdapter.fetchMeetingTitle = jest.fn(() => Promise.resolve('my meeting'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this mock as I can the mock needed is the one with meetingInfo.topic?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed

this.meetings[meeting.ID] = meeting;
sdkMeeting.emit(EVENT_MEETING_UPDATED, meeting);
this.meetings[meeting.ID] = updatedMeeting;
sdkMeeting.emit(EVENT_MEETING_UPDATED, updatedMeeting);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we test all the scenarios of joining the meeting and confirmed that the title appears in all the cases correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, attached screenshots

Copy link
Contributor

@Kesari3008 Kesari3008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test different options : Join meeting using Person ID, email and SIP URI and verify title works in all three

@@ -634,6 +637,13 @@ export default class MeetingsSDKAdapter extends MeetingsAdapter {
try {
const sdkMeeting = this.fetchMeeting(ID);

// eslint-disable-next-line no-console
console.log('ravi joinMeeting sdkMeeting ', sdkMeeting);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this console logs before merge

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@@ -661,6 +671,10 @@ export default class MeetingsSDKAdapter extends MeetingsAdapter {
}),
}));
} else {
// update the meeting title if available after password verification
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we need this code and above now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed from above

@rsarika rsarika merged commit 20a46f8 into webex:master Oct 10, 2024
1 check failed
sreenara pushed a commit that referenced this pull request Oct 10, 2024
## [1.112.11](v1.112.10...v1.112.11) (2024-10-10)

### Bug Fixes

* update meeting name after fetch meetinginfo ([#342](#342)) ([20a46f8](20a46f8))
@sreenara
Copy link
Contributor

🎉 This PR is included in version 1.112.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants